package ai.plantdata.Behavior.mode.StrategyPattern.classes;

import ai.plantdata.Behavior.mode.StrategyPattern.interfaces.Strategy;

/**
 * @Author: WangHui
 * @Date: 2020/12/23 17:14
 * @Description:
 */
public class Context {
    private Strategy strategy;

    public Context(Strategy strategy) {
        this.strategy = strategy;
    }

    public int executeStrategy(int num1,int mun2){
        return strategy.doOperation(num1,mun2);
    }
}
